<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PolkitSystemBusName</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="polkit Reference Manual">
<link rel="up" href="subjects.html" title="Subjects">
<link rel="prev" href="PolkitUnixSession.html" title="PolkitUnixSession">
<link rel="next" href="Identities.html" title="Identities">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="PolkitUnixSession.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="subjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">polkit Reference Manual</th>
<td><a accesskey="n" href="Identities.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#PolkitSystemBusName.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#PolkitSystemBusName.description" class="shortcut">Description</a>
                   | 
                  <a href="#PolkitSystemBusName.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#PolkitSystemBusName.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                   | 
                  <a href="#PolkitSystemBusName.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="PolkitSystemBusName"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="PolkitSystemBusName.top_of_page"></a>PolkitSystemBusName</span></h2>
<p>PolkitSystemBusName — Unique system bus names</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="PolkitSystemBusName.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">                    <a class="link" href="PolkitSystemBusName.html#PolkitSystemBusName-struct" title="PolkitSystemBusName">PolkitSystemBusName</a>;
<a class="link" href="PolkitSubject.html" title="PolkitSubject"><span class="returnvalue">PolkitSubject</span></a> *     <a class="link" href="PolkitSystemBusName.html#polkit-system-bus-name-new" title="polkit_system_bus_name_new ()">polkit_system_bus_name_new</a>          (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="PolkitSystemBusName.html#polkit-system-bus-name-get-name" title="polkit_system_bus_name_get_name ()">polkit_system_bus_name_get_name</a>     (<em class="parameter"><code><a class="link" href="PolkitSystemBusName.html" title="PolkitSystemBusName"><span class="type">PolkitSystemBusName</span></a> *system_bus_name</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="PolkitSystemBusName.html#polkit-system-bus-name-set-name" title="polkit_system_bus_name_set_name ()">polkit_system_bus_name_set_name</a>     (<em class="parameter"><code><a class="link" href="PolkitSystemBusName.html" title="PolkitSystemBusName"><span class="type">PolkitSystemBusName</span></a> *system_bus_name</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
<a class="link" href="PolkitSubject.html" title="PolkitSubject"><span class="returnvalue">PolkitSubject</span></a> *     <a class="link" href="PolkitSystemBusName.html#polkit-system-bus-name-get-process-sync" title="polkit_system_bus_name_get_process_sync ()">polkit_system_bus_name_get_process_sync</a>
                                                        (<em class="parameter"><code><a class="link" href="PolkitSystemBusName.html" title="PolkitSystemBusName"><span class="type">PolkitSystemBusName</span></a> *system_bus_name</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="PolkitSystemBusName.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----PolkitSystemBusName
</pre>
</div>
<div class="refsect1">
<a name="PolkitSystemBusName.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
PolkitSystemBusName implements
 <a class="link" href="PolkitSubject.html" title="PolkitSubject">PolkitSubject</a>.</p>
</div>
<div class="refsect1">
<a name="PolkitSystemBusName.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="PolkitSystemBusName.html#PolkitSystemBusName--name" title='The "name" property'>name</a>"                     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write / Construct
</pre>
</div>
<div class="refsect1">
<a name="PolkitSystemBusName.description"></a><h2>Description</h2>
<p>
An object that represents a process owning a unique name on the system bus.
</p>
</div>
<div class="refsect1">
<a name="PolkitSystemBusName.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="PolkitSystemBusName-struct"></a><h3>PolkitSystemBusName</h3>
<pre class="programlisting">typedef struct _PolkitSystemBusName PolkitSystemBusName;</pre>
</div>
<hr>
<div class="refsect2">
<a name="polkit-system-bus-name-new"></a><h3>polkit_system_bus_name_new ()</h3>
<pre class="programlisting"><a class="link" href="PolkitSubject.html" title="PolkitSubject"><span class="returnvalue">PolkitSubject</span></a> *     polkit_system_bus_name_new          (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
<p>
Creates a new <a class="link" href="PolkitSystemBusName.html" title="PolkitSystemBusName"><span class="type">PolkitSystemBusName</span></a> for <em class="parameter"><code>name</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A unique system bus name.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="PolkitSystemBusName.html" title="PolkitSystemBusName"><span class="type">PolkitSystemBusName</span></a>. Free with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="polkit-system-bus-name-get-name"></a><h3>polkit_system_bus_name_get_name ()</h3>
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       polkit_system_bus_name_get_name     (<em class="parameter"><code><a class="link" href="PolkitSystemBusName.html" title="PolkitSystemBusName"><span class="type">PolkitSystemBusName</span></a> *system_bus_name</code></em>);</pre>
<p>
Gets the unique system bus name for <em class="parameter"><code>system_bus_name</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>system_bus_name</code></em> :</span></p></td>
<td>A <a class="link" href="PolkitSystemBusName.html" title="PolkitSystemBusName"><span class="type">PolkitSystemBusName</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The unique system bus name for <em class="parameter"><code>system_bus_name</code></em>. Do not
free, this string is owned by <em class="parameter"><code>system_bus_name</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="polkit-system-bus-name-set-name"></a><h3>polkit_system_bus_name_set_name ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                polkit_system_bus_name_set_name     (<em class="parameter"><code><a class="link" href="PolkitSystemBusName.html" title="PolkitSystemBusName"><span class="type">PolkitSystemBusName</span></a> *system_bus_name</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
<p>
Sets the unique system bus name for <em class="parameter"><code>system_bus_name</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>system_bus_name</code></em> :</span></p></td>
<td>A <a class="link" href="PolkitSystemBusName.html" title="PolkitSystemBusName"><span class="type">PolkitSystemBusName</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A unique system bus name.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="polkit-system-bus-name-get-process-sync"></a><h3>polkit_system_bus_name_get_process_sync ()</h3>
<pre class="programlisting"><a class="link" href="PolkitSubject.html" title="PolkitSubject"><span class="returnvalue">PolkitSubject</span></a> *     polkit_system_bus_name_get_process_sync
                                                        (<em class="parameter"><code><a class="link" href="PolkitSystemBusName.html" title="PolkitSystemBusName"><span class="type">PolkitSystemBusName</span></a> *system_bus_name</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Synchronously gets a <a class="link" href="PolkitUnixProcess.html" title="PolkitUnixProcess"><span class="type">PolkitUnixProcess</span></a> object for <em class="parameter"><code>system_bus_name</code></em>
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>the calling thread is blocked until a reply is received.</p></li></ul></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>system_bus_name</code></em> :</span></p></td>
<td>A <a class="link" href="PolkitSystemBusName.html" title="PolkitSystemBusName"><span class="type">PolkitSystemBusName</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>A <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="PolkitUnixProcess.html" title="PolkitUnixProcess"><span class="type">PolkitUnixProcess</span></a> object or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>][<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="PolkitSystemBusName.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="PolkitSystemBusName--name"></a><h3>The <code class="literal">"name"</code> property</h3>
<pre class="programlisting">  "name"                     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write / Construct</pre>
<p>
The unique name on the system message bus.
</p>
<p>Default value: NULL</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>